﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace InformationExtraction
{
    class SentenceCollection
    {
        private int _maxIndex;
        private List<Sentence> _sentences;

        public Sentence this[int index]
        {
            get
            {
                return null;
            }
        }

        public SentenceCollection(string rawPage)
        {
            //dotPattern: ./.
            Regex dotPattern = new Regex(@"\./\.");
            string[] sents = dotPattern.Split(rawPage);
            _sentences = new List<Sentence>(sents.Length);
            foreach (string str in sents)
                if (!string.IsNullOrWhiteSpace(str))
                    _sentences.Add(new Sentence(str.Trim() + "."));
        }
    }
}
